package com.atguigu.gulimall.cart.service;

import com.atguigu.gulimall.cart.vo.Cart;
import com.atguigu.gulimall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem addCartItem(Long skuId, int num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    void checkItem(Long skuId, boolean check);

    void deleteItem(Long skuId);

    void countItem(Long skuId, int num);

    List<CartItem> getCheckItem() throws ExecutionException, InterruptedException;

}
